package com.itlong.cloud.POJO.VO;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <desc>
 *      非泛型版本 函数返回值对象，其泛型版本为 TResult
 * </desc>
 *
 * @createDate 2017-11-08.
 */
@Data
@NoArgsConstructor
public class Result {
    protected boolean success; // 操作是否成功
    protected  String error; //错误信息

    public Result(boolean success, String error){
        this.success = success;
        this.error = error;
    }

    public Result(boolean success){
        this(success, "");
    }

    public Result(String error){
        this(false, error);
    }
}
